/**  
 * @date 2023-11-24 
 * @author Zhang Yu
 */
package com.jwt.shiro.demo.controller;

import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jwt.shiro.demo.model.ResultMap;


/**  
 * @description: TODO
 */
@RestController
@RequestMapping("/user")
public class UserController {

	@Autowired
    ResultMap resultMap;
    /**
     * 拥有 user, admin 角色的用户可以访问下面的页面
     */
    @GetMapping("/getMessage")
    public ResultMap getMessage() {
        return resultMap.success().code(200).message("成功获得信息！");
    }
}
